package com.sdjzu.wangfuying.hellospringboot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.HashMap;

@Controller
public class WebController {

    @RequestMapping(path = {"/index", "/"})
    public String index(HashMap<String, Object> map) {
        map.put("data", "Index Page Data");
        return "tpl-index";
    }
}
